using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;


namespace ConsoleApplication9
{
    interface IShowable 
    {
        void ShowLine();
    }

    public class line : IComparable, IShowable
    {
        int a;
        int b;
        public void ShowA()
        {
            Console.WriteLine(a);
        }
        public void setA(int in_a)
        {
            a = in_a;
        }


        public int CompareTo(object obj)
        {
            if (obj == null) return 1;

            return this.a - ((line)obj).a;
        
        }

        public void ShowLine()
        {
            Console.WriteLine("Show line a = {0} b = {1}", a, b);
        }

        public void ShowB()
        {
            Console.WriteLine(b);
        }
        public void SetB(int in_b)
        {
            b = in_b;
        }
        public int AandB()
        {
            return a * b;
        }

    }
}
